home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / f6fbb / filsrv26.exe / REQFIL.DOC < prev    next >
Text File  |  1994-07-07  |  20KB  |  472 lines

  1.                  REQFIL & REQDIR, DIR & GET for the F6FBB BBS
  2.                           Version 2.6  July 6, 1994
  3.                         (C) 1994 by Dean R. Madsen, KE0WO
  4.                         KE0WO @ KE0WO.#NWIA.IA.USA.NA
  5.                         Internet: dmadsen@iastate.edu
  6.  
  7.         This file contains a BRIEF overview about how to install and run
  8. the REQDIR, REQFIL, GET & DIR programs.
  9.  
  10.  
  11.         REQFIL & REQDIR are file servers that allow users to upload and 
  12. download files are well as receive directories and directory listings (as 
  13. set up by the Sysop).  These servers are intended to mimic the FILEX server
  14. (that is a part of the W0RLI BBS) and make it easier for users to access
  15. files by not having to deal with manuvering through FBBDOS or worrying about 
  16. pathes.  Another advantage to these servers is the Sysop defines and labels
  17. the file areas.  This prevents users from wandering through your hard disk
  18. and allows directories to be labeled (max 80 characters).  The servers also
  19. use the R: routing lines to find the home BBS of the originator of the
  20. message to the server.  Other features of these servers are:
  21.  
  22. - A message to the SysOp when an upload is received stating who uploaded the
  23.   file, where it is located and when the upload occured.
  24.  
  25. - Credit is given at the beginning of a file to the person who uploaded it.
  26.  
  27. - Users will receive various messages for:  successful uploads, duplicate file
  28.   names (for uploads), inexistant directories, etc.
  29.  
  30. - The configuration file is simular to the portion of the file that  
  31.   configures the file sections on the W0RLI BBS (last time I looked).
  32.  
  33. - The text used in responses from the server can be easily changed allowing
  34.   for customization/other languages.
  35.  
  36. - Variables are available to include variable info into the reply messages.
  37.  
  38. - When requesting a directory listing, it is possible to set a filter using 
  39.   wildcards such as *.TXT.
  40.  
  41. - The servers do not use as much memory as they used to.
  42.  
  43. - There can be practically an unlimited number of files in a directory. 
  44.   Previously there was a limit of about 1000 or less.
  45.  
  46. - Long replies can be split into a Sysop settable number of lines.  Using the
  47.   R95 Split format.
  48.  
  49. - GET and REQFIL no longer need a subdirectory letter when downloading, just enter
  50.   the name of the file you want.
  51.  
  52. - Drives/directries not set up in the .CFG file are accessable for download.
  53.   (Sysop settable with multiple security levels).
  54.  
  55. --------------------------- Getting Started ---------------------------------- 
  56.  
  57. First copy the REQFIL.EXE and REQDIR.EXE files to the \FBB\BIN directory.
  58. Make sure to delete the REQFIL.COM and REQDIR.COM that came with the FBB
  59. program.
  60. Then copy  DIR.EXE and GET.EXE to the \FBB\PG directory.
  61.  
  62. Now the REQFIL.CFG file needs to be configured.  This file HAS to be in the
  63. \FBB directory.
  64.  
  65. The REQFIL.TXT and REQDIR.TXT files need to be copied to the \FBB directory.
  66. They may be edited as you like.
  67.  
  68. ------------------------C:\FBB\REQFIL.CFG------------------------------------    
  69.  
  70.  
  71. The First line of this file is the call of the BBS the servers are being run
  72. on.
  73.  
  74. The second line is the callsign of the Sysop (This is the call that will
  75. receive messages when an upload is received).
  76.  
  77. The third line is the call/alias that you want all messages from REQFIL and
  78. REQDIR to be from.  At this time both REQDIR and REQFIL use this call,  in the
  79. future I might change this to allow two different aliases.  I recommend either
  80. the call of the BBS (without SSID) or the alias SERVER.
  81.  
  82. The fourth line is the size in bytes for the directory listing in each
  83. REQDIR reply.  (a value of 0 disables reply splitting)
  84.  
  85. The fifth line is the size in bytes for the chunks of the file to include each 
  86. in each REQFIL reply.  (a value of 0 disables reply splitting)
  87.  
  88. The sixth line is the security level for REQFIL and GET.  This sets up who
  89. can use GET and REQFIL to access all directories/drives in your hard disk.
  90.  
  91. **** If you don't want someone to have C:\AUTOEXEC.BAT as their message to
  92.      REQFIL and download your AUTOEXEC pay attention to this parameter!
  93.  
  94. Value of:
  95.  
  96. 4096      disables everyone from retrieving files outside the file directories
  97.           defined in \FBB\REQFIL.CFG
  98.  
  99. 2048      Allows ONLY requests from the callsign on the first line to retrieve
  100.           files outside the file areas.
  101.  
  102. 0         Allows anyone and everyone to retrieve files outside the file
  103.           sections.  (for my beta testers that didn't have the option of 
  104.           setting a security level there was no problem.)
  105.  
  106. Now here is where the numbers are a little different.  These numbers allow you
  107. to set multiple requirements setup by the EU command.  For example you can
  108. set the file server to only allow those marked as Sysop with see-all messages
  109. status with pagination enabled with modem access with expert user status that
  110. are local and are excluded from the BBS to download stuff outside the file
  111. directories (granted, no one would probably want to set it this way, but it is
  112. possible to do it).
  113.  
  114. You add numbers corresponding to the flag that you want potential downloaders
  115. to have before they can download outside the file structure.  This is just like
  116. the INIT.SRV setting the Masque given to users when they login for the first
  117. time before the INSTAFBB program was used.
  118.  
  119. 1       Excluded       (basically a useless option that didn't take take much
  120.                         more coding to add, so I did).
  121. 2       Local
  122.  
  123. 4       Expert          
  124.  
  125. 8       Sysop           This is the most useful option.  Only those marked
  126.                         as Sysop in FBB will have access.
  127.  
  128. 16      BBS             Great way to give neighbor BBS stations a way to
  129.                         look at your system files to see how it is done if
  130.                         you happen to be the local expert on FBB.
  131.  
  132. 32      Pagination      Same case as the number 1
  133.  
  134. 64      Guest           See above
  135.  
  136. 128     Modem           Another way to narrow the scope of those who have
  137.                         clearance.
  138.  
  139. 256     Read all msgs   "
  140.  
  141. 512     Uproto list     "
  142.  
  143. 1024    OM featur on    case 1 again
  144.  
  145.  
  146. example:  a value of 392 will limit it to sysops who have read all status and
  147.           have modem access (8 + 256 + 128 = 392).
  148.  
  149.  
  150.  
  151.  
  152. The next lines are for setting up your file sections.  Each entry is made up
  153. of 3 lines.
  154. The first is the character that identifies the directory.  The next is the path
  155. to the directory on your HD (you have to have the \ as the last character!).
  156. The last of the 3 lines is the name (80 characters or less) of the file
  157. section.
  158.  
  159. Also there are no blank lines nor comment lines allowed anywhere in the 
  160. REQFIL.CFG file.
  161.  
  162. ------------------------------REQFIL.TXT format------------------------------
  163. GET and REQFIL use the text found in the \FBB\REQFIL.TXT for the response
  164. messages to be sent to the user.  Since this is an ASCII file, it can be
  165. customized to suite your taste, or re-written in another language.
  166.  
  167. Note that each section must be separated with a line that has #; as the first
  168. two characters.  There are 8 sections total.  I have added a comment in the #;
  169. line that should tell you what each section is for, so I will not repeat it
  170. here.
  171.  
  172. Variables are allowed to include variable information in responses from the
  173. server.  ALL variables are preceded with a $ and are in lower case.  This is
  174. a must!
  175.  
  176. Variables valid for REQFIL.TXT are:
  177.  
  178. $command                :       Command entered.
  179. $thisbbs                :       Callsign of the BBS as found in REQFIL.CFG
  180. $towho                  :       The callsign the reply message is going to/
  181.                                 the person who made the server request.
  182. $ident                  :       File section identifier.
  183. $path                   :       DOS path of the file directory.
  184. $dateusa                :       Current date in the MM/DD/YY format as used in
  185.                                 the USA.
  186. $dateeu                 :       Current date in the DD/MM/YY format as used
  187.                                 everywhere else.
  188. $time                   :       Current time as shown by the computer's clock.
  189. $file                   :       Name of file requested.
  190. $homebbs                :       User's homebbs as determined by R: headers by
  191.                                 REQFIL.  GET returns $thisbbs since there are
  192.                                 no R: headers for that program to process.
  193.  
  194.  
  195. ------------------------------REQDIR.TXT format------------------------------
  196. DIR and REQDIR use the text found in the \FBB\REQDIR.TXT for the response
  197. messages to be sent to the user.  Since this is an ASCII file, it can be
  198. customized to suite your taste, or re-written in another language.
  199.  
  200. Note that each section must be separated with a line that has #; as the first
  201. two characters.  There are 6 sections total.  I have added a comment in the #;
  202. line that should tell you what each section is for, so I will not repeat it
  203. here.
  204.  
  205. Variables are allowed to include variable information in responses from the
  206. server.  ALL variables are preceded with a $ and are in lower case.  This is
  207. a must!
  208.  
  209. Variables valid for REQDIR.TXT are:
  210.  
  211. $command                :       Command entered.
  212. $thisbbs                :       Callsign of the BBS as found in REQFIL.CFG
  213. $towho                  :       The callsign the reply message is going to/
  214.                                 the person who made the server request.
  215. $ident                  :       File section identifier.
  216. $path                   :       DOS path of the file directory.
  217. $dateusa                :       Current date in the MM/DD/YY format as used in
  218.                                 the USA.
  219. $dateeu                 :       Current date in the DD/MM/YY format as used
  220.                                 everywhere else.
  221. $time                   :       Current time as shown by the computer's clock.
  222. $filter                 :       Directory filter used.
  223. $homebbs                :       User's homebbs as determined by R: headers by
  224.                                 REQDIR.  DIR returns $thisbbs since there are
  225.                                 no R: headers for that program to process.
  226.  
  227. --------------------- To Install the Servers in FBB -------------------------
  228.  
  229. Edit the \FBB\INIT.SRV file to have line simular to the following at the end
  230. in the server setup section:
  231.  
  232. REQDIR        REQDIR        Request file directories
  233. REQFIL        REQFIL        Download/Upload files
  234.  
  235.  
  236.  
  237. If you are upgrading from a previous version of my server, you will need to 
  238. delete the entries for it in the BBS.SYS, CRON.SYS and FORWARD.SYS files.
  239. This new version of the server doesn't need that.
  240.  
  241.  
  242. --------------------------- Operation ---------------------------------------
  243.  
  244. To get a list of file sections:
  245.  
  246. Send a message to REQDIR  (SP REQDIR),  then enter W followed by a Return or
  247. strike of the Enter key as the title of the message.  Then end the message 
  248. with a CONTROL-Z.
  249.  
  250. To get a directory of a certain file section:
  251.  
  252. Send a message to REQDIR  (SP REQDIR), then enter Wx followed by a Return or
  253. strike of the Enter key where x is a single character that identifies the 
  254. desired file area as the title of the message.  Then end the message with a 
  255. CONTROL-Z.
  256.  
  257. You may also specify a filter to be used when getting the directory of a 
  258. file spection.  The subject of the message to REQDIR would be Wx *.TXT to
  259. see all the files that have the extension TXT in the x file section.
  260.  
  261. Note: that you may now have multiple directory requests in one message to
  262. REQDIR.  Just put one request in the subject of the message and additional
  263. requests in the text part of the message, one per line.
  264.  
  265. To download a file:
  266.  
  267. Send a message to REQFIL  (SP REQFIL), then enter Dx filename.ext followed by 
  268. a Return or strike of the Enter key where x is a single character that 
  269. identifies the desired file area and filename.ext is the file you wish to
  270. download as the title of the message.  Then end the message with a CONTROL-Z.
  271.  
  272. Note:  Additional downloads may be requested in the body of the message.  Be
  273.        careful not to request too many files at one time!
  274.  
  275. If you just put the name of the file, REQFIL will assume it is a download and
  276. search the defined subdirectories for the first occurance of that file and then
  277. send it if found.  No wildcards allowe, sorry.
  278.  
  279.  
  280. To upload a file:
  281. Send a message to REQFIL  (SP REQFIL), then enter Ux filename.ext followed by 
  282. a Return or strike of the Enter key where x is a single character that 
  283. identifies the desired file area and filename.ext is the name you want to
  284. assign the file that you are uploading as the title of the message.  Then end 
  285. the message with a CONTROL-Z. 
  286.  
  287. *** Note:  The server is looking for the first character of message title as 
  288.            the command to either Upload or Download, the second character as 
  289.            the character identifying the file section and the fourth character 
  290.            as the start of the file name (in the case of REQFIL).  Spaces ARE 
  291.            IMPORTANT:
  292.  
  293. These WILL work:               (assuming the specified directories are valid)
  294.  
  295. SP REQDIR
  296. W
  297. CTRL-Z
  298.  
  299. SP REQDIR
  300. WD                  
  301. CTRL-Z
  302.  
  303. SP REQFIL
  304. UD THISFILE.TXT
  305. CTRL-Z
  306.  
  307. SP REQFIL
  308. DD THATFILE.TXT
  309. CTRL-Z
  310.  
  311. SP REQDIR
  312. W D
  313. CTRL-Z
  314.  
  315. SP REQFIL
  316. U D FILENAME.EXT
  317. CTRL-Z
  318.  
  319. These WILL NOT work:
  320.  
  321. SP REQDIR
  322.  W
  323. CTRL-Z
  324.  
  325. SP REQDIR
  326.  WD
  327. CTRL-Z
  328.  
  329.  
  330. SP REQFIL
  331.  UD FILENAME.EXT
  332. CTRL-Z
  333.  
  334. SP REQFIL
  335. UDFILENAME.EXT
  336. CTRL-Z
  337.  
  338. SP REQFIL
  339. UD  FILENAME.EXT
  340. CTRL-Z
  341.  
  342. etc...   (You get the idea)
  343.  
  344.  
  345. ---------------------- Briefly how it works --------------------------------
  346.  
  347. After you receive a message to REQFIL or REQDIR the server will be run.
  348. Any replies generated will then be placed in the \FBB\MAIL.IN file to be
  349. imported into the BBS.  The BBS is supposed to check for and import the 
  350. MAIL.IN file every minute at which time it will import the messages.
  351.  
  352.  
  353. -----------------------------DIR & GET--------------------------------------
  354. DIR and GET are PG programs made to run on systems using the KE0WO version
  355. of REQFIL  & REQDIR.
  356.  
  357. Set up of these programs are simple.  Copy DIR.EXE and GET.EXE into your
  358. \FBB\PG directory.  All other setup has been previously taken care of through
  359. the set up of REQDIR & REQFIL.  DIR is basically the REQDIR program modified
  360. to run as a PG program.  This program is to allow stations connected to
  361. access the file sections defined in REQFIL.CFG without having to wait for the
  362. BBS to forward into a file and then for CRON.SYS to be called to process the
  363. file.  By typing in PG DIR the a connected station will receive the same
  364. information that would be put into message form by sending a message to REQDIR
  365. with a message title of W.  This program's output is then sent to the user who
  366. ran it.  FBB's paging option (if selected by the user) will work with the output
  367. of this program.  To get a directory of the B file section one would type:
  368. PG DIR B .  To get a directory of all the files beginning with B and ending 
  369. with the extension of TXT in the B section one would type: PG DIR B B*.TXT .
  370.  
  371.  
  372. GET is the PG program equivalent of REQFIL, with the exception that GET does
  373. not support uploading.  The use is just like REQFIL.  To use GET you type in:
  374. PG GET x filename.ext  where x is the character designator that filename.ext
  375. is in.
  376.  
  377. *** NOTE:  I found that I could type in the DIR <arguments>  and
  378. GET <arguments> and run the appropriate PG program WITHOUT have PG preceeding
  379. the commands, which is a feature of the FBB 5.15 program.  Those running older
  380. versions of the program may have to include the PG command infront of the 
  381. program name.
  382. -----------------------------Tricks/Tips------------------------------------
  383.  
  384.         With FBB 5.15 it became possible to replace built in BBS commands
  385. with external PG programs.  This being the case, you can now replace the
  386. FBB W command that give you a DOS directory with the DIR program by copying
  387. DIR.EXE \FBB\PG\W.EXE.
  388.  
  389. -----------------------------Conclusion-------------------------------------
  390.  
  391. 1. This software is freeware to the amateur community. It may not be sold
  392.    (but if you really want to exchange money for the program, send it to the
  393.    author's home address as listed below :-).  It may be freely copied and 
  394.    distributed in its original form, but at no charge exceeding the medium 
  395.    and shipping.
  396.  
  397. 2. No warranty is expressed or implied and incidental damages resulting from
  398.    the use of this software are solely the responsibility of the user. While
  399.    the software works fine, and I am willing to give it to the amateur 
  400.    community, I am not willing to assume any liabilty for it crashing your
  401.    computer or its peripherals. (It has not done that on any machine we have
  402.    run it on...this is just legal junk to prevent someone from holding me
  403.    responsible for being generous enough to give this server away as a 
  404.    service to the FBB community.)
  405.  
  406. 3. Feedback on desired features, changes, bugs, etc. is encouraged.  (If I
  407.    don't receive any feedback, I might make the conclusion that it is
  408.    perfect and no other development is needed).
  409.  
  410. 4. I expect that my release will be UNALTERED.  If I connect to a board and
  411.    find this file server package, I expect it to be unchanged and named
  412.    FILSRV26.EXE.  I don't want to see it as FILSRV26.ARJ or FILSRV26.ZIP.
  413.    If I take the time to maintain and release this software, the least
  414.    you can do is not change it.
  415.  
  416.  
  417.  
  418. Good luck and 73,
  419. Dean - KE0WO
  420.  
  421.  
  422. US Snail - Home:     Dean R. Madsen, KE0WO
  423.                      P. O. BOX 303
  424.                      Storm Lake, IA  50588
  425.  
  426. US Snail - College:  Dean R. Madsen, KE0WO
  427.                      Wallace 7348 Lancelot
  428.                      Iowa State University
  429.                      Ames, IA  50013
  430.  
  431. Packet:    KE0WO @ KE0WO.#NWIA.IA.USA.NA
  432.  
  433. Internet:       dmadsen@iastate.edu    (preferred)
  434.                 MADSENDEAN@BVC.EDU     (forwarded to the above account)
  435.  
  436. (Internet E-Mail will give you the 2nd fastest reply time, with phone 
  437.  being 1st)
  438.  
  439.  
  440.  
  441. Phone:
  442.  
  443. Voice:     (712)  732-2021  -  Your dime.  Your best chances of catching me at
  444.                                home are weekends & holidays.
  445.            (515)  296-9471  -  The number for my dorm at Iowa State Univeristy
  446.                                I am  usually around in the evening Sunday
  447.                                through Thursday.  I am usually up until
  448.                                12:00am central time (about 05:00Z to 06:00Z)
  449.  
  450. Data :    (712)  732-3767  -   14400,N,8,1 .   Enter your call at the prompt,
  451.                                then type Y to proceed.  
  452.                                Latest KE0WO servers/utilities in the SERVERS
  453.                                subdirectory of my file section in FBBDOS.
  454.  
  455.  
  456. Internet FTP:                  I will have my latest stuff available on my
  457.                                my Internet FTP site for those that want the
  458.                                latest works, or would like to test beta
  459.                                software that I may be working on.
  460.                                FTP vincent.iastate.edu   and login as
  461.                                anonymous.dmadsen  then sent your email
  462.                                address as your password.  I will try to 
  463.                                set up some sort of logical directory
  464.                                structure in the near future.  I plan to have
  465.                                my servers in the directory ke0wo and beta
  466.                                versions in the beta directory.
  467.  
  468.                                I will also try to get my servers to
  469.                                FTP.FUNET.FI somewhere in the
  470.                                /pub/ham/packet/bbs/f6fbb subdiretories.
  471.  
  472.